package ar.com.sgsvm.logic;

import ar.com.sgsvm.dao.DaoFactory;
import ar.com.sgsvm.entity.Factura;

public class FacturaLogica {
	
	private DaoFactory mDaoFactory = DaoFactory.getDaoFactory(DaoFactory.SQLITE);
	
	public Factura obtenerFacturaPorIdLineaFactura(long idLineaFactura) throws Exception{
		return mDaoFactory.getFacturaDao().readByIdLineaFactura(idLineaFactura);
	}
	
	public Factura obtenerFactura(long idFactura) throws Exception {
		return mDaoFactory.getFacturaDao().readById(idFactura);
	}

}
